const path = require('path');
const host = require('./host');
console.log( encodeURIComponent(process.env.type) );
const website = {};
if(process.env.type== "build"){
    website.publicPath="http://"+host+":1717/"
}else{
    website.publicPath="http://"+host+":1717/"
    // website.publicPath="http://cdn.jspang.com/"
}
module.exports = {
    //输出的路径，用了Node语法
    path:path.resolve(__dirname,'../dist'),
    //输出的文件名称
    filename:'js/bundle.js',
    publicPath:website.publicPath
};